﻿<UserControl x:Class="SimpleDbBrowser.UserControls.PutAttributeUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Label Grid.Row="0"  Content="Item Name:" HorizontalContentAlignment="Right"/>
        <TextBox Grid.Column="1" x:Name="txtItemName" Text="{Binding Path=ItemName, UpdateSourceTrigger=PropertyChanged}" />
        <Label Grid.Row="1" Content="Attribute Name:" HorizontalContentAlignment="Right"/>
        <TextBox Grid.Column="1" Grid.Row="1" x:Name="txtAttributeName" Text="{Binding Path=AttributeName, UpdateSourceTrigger=PropertyChanged}" />
        <Label Grid.Row="2"  Content="Attribute Value:" HorizontalContentAlignment="Right"/>
        <TextBox Grid.Column="1" Grid.Row="2" x:Name="txtAttributeValue" Text="{Binding Path=AttributeValue, UpdateSourceTrigger=PropertyChanged}" />
        <Button Content="Add attribute to item" Grid.Row="3" x:Name="btnAdd" Grid.ColumnSpan="2" Command="{Binding PutAttribute}" />
    </Grid>
</UserControl>
